from django.conf.urls import url
from . import views

urlpatterns = [
    # 限制空字符串
    url(r'^$', views.index),
    url(r'^article/(?P<article_id>[0-9]+)$', views.article_page, name='article_page'),
    url(r'^article/edit/(?P<article_id>[0-9]+)$', views.article_edit, name='article_edit'),
    url(r'^article/edit/action/$', views.edit_action, name='edit_action'),
    url(r'^hello/add_author/$', views.add_author, name='add_author')
]
